/******************************************************************************
*
* Copyright (C), 2013, mophie. Co., Ltd. All Rights Reserved. 
*
* Version: v1.0.0
* $$Datae: 2013-7-5  
*
* Description:    
*   IIC Function
*
* Function List: 
* 
* History:        
*         1. $$data:  2013-7-5
*            Author:  JPM team         
*
******************************************************************************/
#ifndef _io_api_h
#define _io_api_h

/********include files********************************************************/
#include "pio.h"

/********MARC define**********************************************************/
#define PULL_UP_ENABLE        1
#define PULL_UP_DISABLE       0
#define MULTI_DRIVE_ENABLE    1
#define MULTI_DRIVE_DISABLE   0
#define FILTER_ENABLE         1
#define FILTER_DISABLE        0
/********functions list*******************************************************/ 
void PIO_out_config_api(Pio *p_pio,uint8_t en_pull_up,uint8_t en_multi_drive,\
                        uint32_t pin_index);
void PIO_set_bit(Pio *p_pio,uint32_t pin_index);
void PIO_reset_bit(Pio *p_pio,uint32_t pin_index);
void PIO_input_config_api(Pio *p_pio,uint8_t en_pull_up,uint8_t en_filter,\
                          uint32_t pin_index);
uint8_t PIO_read_bit(Pio *p_pio,uint32_t pin_index);
uint8_t PIO_read_output_data(Pio *p_pio,uint32_t pin_index);
//void sys_tick_delay_ms(uint32_t dly_ms);
//void sys_tick_delay_us(uint32_t dly_us);

#endif
